package pta.test0607.找出最长的单词;

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String input = in.nextLine();
        String[] words = input.split(" ");
        String longestWord = "";
        for (int i = 0; i < words.length; i++) {
            int a = words[i].length();
            if (longestWord.length()<=a){
                longestWord=words[i];
            }
        }
        System.out.println(longestWord);
    }
}
